if (/MSIE [4-8]/.test(navigator.userAgent)) {
	location.href = "browser/index.html"
}
$(function() {
	var a = function() {
			$("#trans_list").load("/trans")
		};
	a();
	setInterval(a, 60000);
	$(".gameitms a").click(function() {
		var b = $(this).attr("class");
		if (b != "more") {
			if (!$(".login").is(":hidden")) {
				var c;
				if (doLogin) {
					c = {
						"游客登录": function() {
							alert(msg);
							doLogin("!guest!", "!guest!")
						}
					}
				}
				dialog.error("消息", "您还没有登录！", c);
				return false
			}
		}
	})
});

function showError() {
	dialog.error("消息", "暂未开通！");
	return false
}
function getLastDay(b, d) {
	var c = new Date(b, d, 1);
	var a = (new Date(c.getTime() - 1000 * 60 * 60 * 24)).getDate();
	return b + "-" + d + "-" + a
};